/* 
 * File:   Game.h
 * Author: jose
 *
 * Created on 5 de Abril de 2012, 20:28
 */

#ifndef GAME_H
#define	GAME_H

#include <SDL/SDL.h>
#include "GameDefinitions.h"
#include "Ball.h"
#include "Paddle.h"

class Game {
public:
    Game();
    Game(const Game& orig);
    virtual ~Game();
    bool init();
    void start();
private:
    SDL_Surface *mainScreen;
    Ball *gameBall;
    Paddle *player1, *player2;
    void createDrawables();
    void performCollisions();
    void applyGameLogic(Uint32 deltaTime);
    void drawItems();

};

#endif	/* GAME_H */

